#include <QPainter>
#include "flight_track_stage.h"
#include "ui_flight_track_stage.h"

Flight_track_stage::Flight_track_stage(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Flight_track_stage)
{
    ui->setupUi(this);
}

Flight_track_stage::~Flight_track_stage()
{
    delete ui;
}

void Flight_track_stage::paintEvent(QPaintEvent *ev)
{
    QPainter painter(this);
    QFont font;
    font.setFamily("Microsoft YaHei");
    font.setPointSize(50);
    font.setItalic(true);

    painter.setFont(font);
    painter.setBrush(QBrush(QColor(Qt::red)));
    painter.drawText(rect(), Qt::AlignCenter, "Qt");
    painter.drawEllipse(100, 200, 3, 3);

    QWidget::paintEvent(ev);
}
